import { NodeRoot } from "../Base/NodeRoot";
import { NMNode } from "../Base/NodeGraph";
@NMNode
export class SetPosition extends NodeRoot{
    public Node: any;
    public Position;
    private setNode:cc.Node;
    onEnter(){
        this.setNode=this.Node;
        if(!this.setNode){
            this.setNode=this.ownerNode;
        }
        this.setNode.position=cc.v2(this.Position.x,this.Position.y);
    }
}